package org.dey.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dey.entity.Result;
import org.dey.pojo.Menu;
import org.dey.pojo.PageVo;

import java.util.List;

public interface MenuService extends IService<Menu> {

    List<Menu> zcmenus(int id);

    //查
    public PageVo<Menu> querymenu(Menu menu, int pageno, int pagesize);

    //增
    public Result insertmenu(Menu menu);

    //删
    public Result delmenu(int id);

    //修改前先根据id查到该数据
    public Menu querymenubyid(int id);

    //根据id修改
    public Result updatemenubyid(Menu menu);


    List<Menu> menusQbXx();

   int[] menusBfXx(int rid);

    Result shouquan(int roleid, int[] checkedKeys);
}
